package com.smart.test.proxy;

/**
 * @auther a123
 * @create 2018-08-14 17:44
 * @desc 任务类
 */
public class DoSomeing implements Soming {

    public void doEat(){
        System.out.println("I'm eating");
        try {
            Thread.currentThread().sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public void doSleep() {
        System.out.println("I'm sleeping");
        try {
            Thread.currentThread().sleep(300);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
